package io.renren.entity;

/**
 * 列的属性
 */
public class ColumnEntity {
    //列名
    private String columnName;
    //列名类型
    private String dataType;
    //列名长度
    private Integer dataLength;
    //列名数据精度
    private Integer dataPrecision;
    //列名数据规模
    private Integer dataScale;
    //列名备注
    private String comments;
    //数据库字段名
    private String dbAttrName;
    //属性名称(第一个字母大写)，如：user_name => UserName
    private String attrName;
    //属性名称(第一个字母小写)，如：user_name => userName
    private String attrname;
    //属性类型
    private String attrType;
    //auto_increment
    private String extra;

    /**
     * @return the columnName
     */
    public String getColumnName() {
        return columnName;
    }

    /**
     * @param columnName the columnName to set
     */
    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    /**
     * @return the dataType
     */
    public String getDataType() {
        return dataType;
    }

    /**
     * @param dataType the dataType to set
     */
    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    /**
     * @return the dataLength
     */
    public Integer getDataLength() {
        return dataLength;
    }

    /**
     * @param dataLength the dataLength to set
     */
    public void setDataLength(Integer dataLength) {
        this.dataLength = dataLength;
    }

    /**
     * @return the dataPrecision
     */
    public Integer getDataPrecision() {
        return dataPrecision;
    }

    /**
     * @param dataPrecision the dataPrecision to set
     */
    public void setDataPrecision(Integer dataPrecision) {
        this.dataPrecision = dataPrecision;
    }

    /**
     * @return the dataScale
     */
    public Integer getDataScale() {
        return dataScale;
    }

    /**
     * @param dataScale the dataScale to set
     */
    public void setDataScale(Integer dataScale) {
        this.dataScale = dataScale;
    }

    /**
     * @return the comments
     */
    public String getComments() {
        return comments;
    }

    /**
     * @param comments the comments to set
     */
    public void setComments(String comments) {
        this.comments = comments;
    }

    /**
     * @return the dbAttrName
     */
    public String getDbAttrName() {
        return dbAttrName;
    }

    /**
     * @param dbAttrName the dbAttrName to set
     */
    public void setDbAttrName(String dbAttrName) {
        this.dbAttrName = dbAttrName;
    }

    /**
     * @return the attrName
     */
    public String getAttrName() {
        return attrName;
    }

    /**
     * @param attrName the attrName to set
     */
    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    /**
     * @return the attrname
     */
    public String getAttrname() {
        return attrname;
    }

    /**
     * @param attrname the attrname to set
     */
    public void setAttrname(String attrname) {
        this.attrname = attrname;
    }

    /**
     * @return the attrType
     */
    public String getAttrType() {
        return attrType;
    }

    /**
     * @param attrType the attrType to set
     */
    public void setAttrType(String attrType) {
        this.attrType = attrType;
    }

    /**
     * @return the extra
     */
    public String getExtra() {
        return extra;
    }

    /**
     * @param extra the extra to set
     */
    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Override
    public String toString() {
        return "ColumnEntity{" +
                "columnName='" + columnName + '\'' +
                ", dataType='" + dataType + '\'' +
                ", dataLength=" + dataLength +
                ", dataPrecision=" + dataPrecision +
                ", dataScale=" + dataScale +
                ", comments='" + comments + '\'' +
                ", dbAttrName='" + dbAttrName + '\'' +
                ", attrName='" + attrName + '\'' +
                ", attrname='" + attrname + '\'' +
                ", attrType='" + attrType + '\'' +
                ", extra='" + extra + '\'' +
                '}';
    }
}
